//------------------------------------------------------------------------------
// Copyright (c) 2008 www.dnaide.com
// Licensed under the MIT (MIT-LICENSE.txt)
//------------------------------------------------------------------------------
using System;

namespace DNAide.Core
{
	internal static partial class HashCodeAide
	{
		internal static int CombineHashCodes(int h1, int h2)
		{
			return (((h1 << 5) + h1) ^ h2);
		}

		internal static int CombineHashCodes(int h1, int h2, int h3)
		{
			return HashCodeAide.CombineHashCodes(HashCodeAide.CombineHashCodes(h1, h2), h3);
		}       
	}
}

